gtknotebook: Remove dead variable assignments
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 20 Nov 2013 17:32:47 +0000 (17:32 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 9 Mar 2015 13:41:37 +0000 (13:41 +0000)
Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

gtk/gtknotebook.c

index 9217f12ec82b84ea83a016167d84bcfe4d6e6f79..c71229e4b4f85a5898adf31d29067a684abde0ed 100644 (file)
@@ -5233,7 +5233,6 @@ gtk_notebook_search_page (GtkNotebook *notebook,
     }
   else
     {
-      old_list = list;
       list = list->prev;
     }
   while (list)
@@ -5244,7 +5243,6 @@ gtk_notebook_search_page (GtkNotebook *notebook,
            (gtk_widget_get_visible (page->child) &&
             (!page->tab_label || NOTEBOOK_IS_TAB_LABEL_PARENT (notebook, page)))))
         return list;
-      old_list = list;
       list = list->prev;
     }
   return NULL;